﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using SharpSvn;

namespace TestSharpSvn
{
  public class SvnHelper
  {

    public static SvnClient GetClient()
    {
      SvnClient client = new SvnClient();
      string configPath = Path.Combine(Path.GetTempPath(), "sharpsvn");
      if (!Directory.Exists(configPath))
      {
        Directory.CreateDirectory(configPath);
      }
      client.LoadConfiguration(configPath, true);
      client.Authentication.DefaultCredentials = new NetworkCredential("guest", "");
      return client;
    }
  }
}